import { stringify } from 'qs';
import request from '../utils/request';


export async function queryService(params) {
    return request.get('/api/service/order', {params});
}
export async function fetchItem(id) {
    return request.get(`/api/service/order/${id}`);
}

export async function fetchSupport(params) {
    return request.get(`/api/service/order/choose_user`,{params});
}
export async function changeSupportItem(params) {
    return request.put(`/api/service/order/${params.id}`, params);
}
export async function changeItem(params) {
    return request.put(`/api/service/order/${params.id}`, params);
}
export async function removeService(params) {
    return request.delete(`/api/service/order/${params.id}`);
}
export async function queryOrderInfo() {
    return request.get('/api/service/order/info');
}
export async function queryCategories() {
    return request.get('/api/service_menus');
}
